#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>

int
main (int argc, char **argv)
{
	char c = 0;
	long long unsigned len = 0;

	while ((c = getchar()) != EOF) {
		len = len * CHAR_MAX + c;
	}

	printf("%llu\n", len);

	return 0;
}
